﻿package tbo.game.attacks
{
	import tbo.actors.Actor;
	import tbo.actors.attacks.Attack;
	/**
	 * ...
	 * @author ...
	 */
	public class AttackLink 
	{
		protected var attack:Attack;
		protected var target:Actor;
		protected var sender:Actor;
		
		public function AttackLink(a:Attack, t:Actor, s:Actor) 
		{
			attack = a;
			target = t;
			sender = s;
		}
		
		public function execute():void {
			target.applyDamage(attack.power);
		}
	}
	
}